package com.aptemo.webetek.client.events;

import com.google.gwt.event.shared.GwtEvent;

public class SelectedBetEvent
		extends GwtEvent<BetSelectionEventHandler>
{
	public static final Type<BetSelectionEventHandler>	TYPE	= new GwtEvent.Type<BetSelectionEventHandler>();

	private String										id;

	private String										teamId;

	public SelectedBetEvent(String id, String teamid)
	{
		this.id = id;
		this.setTeamId(teamid);
	}


	@Override
	protected void dispatch(BetSelectionEventHandler handler)
	{
		handler.onSelection(this);
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<BetSelectionEventHandler> getAssociatedType()
	{
		return TYPE;
	}

	public String getId()
	{
		return id;
	}

	public void setId(String id)
	{
		this.id = id;
	}


	public void setTeamId(String teamId)
	{
		this.teamId = teamId;
	}


	public String getTeamId()
	{
		return teamId;
	}

}
